home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Sound / PreludeAMP / src / amp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-18  |  1.1 KB  |  60 lines

  1. /* this file is a part of amp software, (C) tomislav uzelac 1996,1997
  2. */
  3.  
  4. /* these should not be touched
  5. */
  6. #define        SYNCWORD    0xfff
  7. #define        TRUE        1
  8. #define        FALSE        0
  9.  
  10. /* version 
  11. */
  12. #define        MAJOR        0
  13. #define        MINOR        7
  14. #define        PATCH        6
  15.  
  16. #define MAX(a,b)    ((a) > (b) ? (a) : (b))
  17. #define MAX3(a,b,c)    ((a) > (b) ? MAX(a, c) : MAX(b, c))
  18. #define MIN(a,b)    ((a) < (b) ? (a) : (b))
  19.  
  20.  
  21. /* Debugging flags */
  22.  
  23. struct debugFlags_t {
  24.   int audio,args,buffer,buffer2,misc,misc2;
  25. };
  26.  
  27. struct debugLookup_t {
  28.   char *name; int *var;
  29. };
  30.  
  31. extern struct debugFlags_t debugFlags;
  32.  
  33. /* This is only here to keep all the debug stuff together */
  34. #ifdef AMP_UTIL
  35. struct debugLookup_t debugLookup[] = {
  36.   {"audio", &debugFlags.audio},
  37.   {"args",  &debugFlags.args},
  38.   {"buffer",  &debugFlags.buffer},
  39.   {"buffer2",  &debugFlags.buffer2},
  40.   {"misc",  &debugFlags.misc},
  41.   {"misc2",  &debugFlags.misc2},
  42.   {0,0}
  43. };
  44. #endif /* AMP_UTIL */
  45.  
  46. extern struct debugLookup_t debugLookup[];
  47.  
  48.  
  49. #ifdef DEBUG
  50.   #define DB(type,cmd) if (debugFlags.type) { cmd ; }    
  51. #else
  52.   #define DB(type,cmd)
  53. #endif
  54.  
  55. #include "config.h"
  56. #include "proto.h"
  57.  
  58.  
  59. extern int AUDIO_BUFFER_SIZE;
  60.